<?php
include ("./src/jpgraph.php");
include ("./src/jpgraph_bar.php");
$datay=array(323,1895,981,1345,1607,1767,1993,1273,1199,1399,2423,1485,1699,2180,1205,1317,781,684,859,839,999,1389,1033,2352,2699,1721,1950,1578,1652,321,48,0);

$graph = new Graph(900,600,"auto");    
$graph->SetScale("textlin");
$graph->SetShadow();

$datax = array("V","Cm(l)","Cm(m)","Cm(u)","O(l)","O(m)","O(u)","S(l)","S(m)","S(u)","D(l)","D(m)","D(u)","CMs","CPn","P(l)","P(u)","Tr(l)","Tr(m)","Tr(u)","J(l)","J(m)","J(u)","K(l)","K(u)","Pg(Pal)","Pg(Eo)","Pg(Oli)","Ng(Mio)","Ng(Pli)","Ng(Plei)","Ng(Re)");
$graph->xaxis->SetTickLabels($datax);
$graph->xaxis->SetLabelAngle(90);

$graph->img->SetMargin(40,30,20,80);
$bplot = new BarPlot($datay);
$bplot->SetFillColor('green');
$bplot->value->Show();
$graph->Add($bplot);
$graph->title->Set("Origination");
$graph->xaxis->title->Set("Stage Interval");
$graph->xaxis->title->SetMargin(40);
$graph->yaxis->title->Set("Number of Genera");
$graph->title->SetFont(FF_FONT1,FS_BOLD,8);
$graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD);
$graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD);
$graph->Stroke();
?>